import sys
from S3D import QtHelper
from S3D.SoundsDeployer.MainWindow import MainWindow
from S3D.SoundsDeployer import Config

def main():
    QtHelper.ensureSingleApp("SoundDeployer")

    config = Config.load()
    wnd = MainWindow(config)
    res = QtHelper.qApp.exec_()
    config.save()

    sys.exit(res)

if 'testLoader' not in vars():
    main()
